package com.eastmoney.emis.edda.infrastructure.report.mapper;

import com.eastmoney.emis.datasource.annotation.TargetDataSource;
import com.eastmoney.emis.edda.common.DbName;
import com.eastmoney.emis.edda.infrastructure.report.po.EmhkHsbcReportFilePo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @description: Description
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.infrastructure.report.mapper
 * @author: 汪程程
 * @date: 2022/11/3 1:21 PM
 * @version: 1.0
 */
@Mapper
public interface ReportMapper {

    @TargetDataSource(DbName.ACCOUNT)
    void addReportFile(@Param("reportPo") EmhkHsbcReportFilePo emhkHsbcReportFilePo);

    @TargetDataSource(DbName.ACCOUNT)
    EmhkHsbcReportFilePo findByFileName(@Param("fileName") String fileName);

    @TargetDataSource(DbName.ACCOUNT)
    boolean exists(String formatFileName);
}
